<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>商之联运营商后台</title>
  <meta name="description" content="这是一个form页面">
  <meta name="keywords" content="form">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="{:C('SUPPLIER_ADMIN_IMAGE')}favicon.png"> <link rel="apple-touch-icon-precomposed" href="{:C('SUPPLIER_ADMIN_IMAGE')}app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="{:C('SUPPLIER_ADMIN_CSS')}amazeui.min.css"/>
  <link rel="stylesheet" href="{:C('ADMIN_CSS')}admin.css">

</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->
<!-- header start-->

<include file="Public:header"/>

<!-- header end-->

<div class="am-cf admin-main">
  <!-- sidebar start -->
     <include file="Public:menu"/>
  <!-- sidebar end -->

<!-- content start -->
<div class="admin-content">

  <div class="am-cf am-padding">
    <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">活动管理</strong> / <small>添加活动</small></div>
  </div>

  <div class="am-tabs am-margin" data-am-tabs="{noSwipe: 1}">
    <ul class="am-tabs-nav am-nav am-nav-tabs">
      <li class="am-active"><a href="#tab1">活动信息</a></li>
      <!-- <li><a href="#tab2">绑定用户</a></li> -->
    </ul>

    <form action="{:U('Activity/childedit')}" method="post" enctype="multipart/form-data">
    <div class="am-tabs-bd">
      <div class="am-tab-panel am-fade am-in am-active" id="tab1">
      <foreach name="res" item="re">
            
            <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
             活动子标题:
            </div>
            <div class="am-u-sm-8 am-u-md-10">
             <input type="text" name="parenttheme" value="{$re.childtheme}" />
             <input type="hidden" name="id" value="{$re.id}">   
            </div>
         
          </div>


          
              <div class="am-g am-margin-top">
          <div class="am-u-sm-2 am-text-right">子主题图片</div>
          <div class="am-u-sm-10">
           <div class="am-form-group">
          <input type="file" id="doc-ipt-file-1" name="childimg">
             <p class="am-form-help">请选择要上传的文件...(像素要求1280*670)<span class="require-field">*</span></p>
          
          <div><if condition="$re['childimg'] neq '' ">
          <img src="{:C('SITENAME')}{$re['childimg']}" style="width:230px;heigth:230px">
          </if>
          </div>
       </div>
          </div>
        </div>


         <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
              活动开始时间:
            </div>
            <div class="am-u-sm-8 am-u-md-10">
              <input class="laydate-icon" id="start" style="width:200px; margin-right:10px;" name="opentime"  value="<?php echo date("Y-m-d H:i:s",$re['opentime'])?>" />
            </div>

          </div>
          <div class="am-g am-margin-top">
            <div class="am-u-sm-4 am-u-md-2 am-text-right">
              活动结束时间:
            </div>
            <div class="am-u-sm-8 am-u-md-10">
              <input class="laydate-icon" id="end" style="width:200px;" name="endtime" value="<?php echo date("Y-m-d H:i:s",$re['endtime'])?>" />
            </div>
         
          </div>






      </foreach>

          
       

      </div>

      
          

       
      </div>



    </div>

<div class="am-margin">
    <button type="submit" class="am-btn am-btn-primary am-btn-xs">提交保存</button>
    <button type="reset" class="am-btn am-btn-primary am-btn-xs">放弃保存</button>
  </div>
  </form>


  </div>

  
</div>
<!-- content end -->


</div>



<script src="{:C('ADMIN_JS')}jquery.min.js"></script>
<include file="Public:footer"/>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="{:C('SUPPLIER_ADMIN_JS')}polyfill/rem.min.js"></script>
<script src="{:C('SUPPLIER_ADMIN_JS')}polyfill/respond.min.js"></script>
<script src="{:C('SUPPLIER_ADMIN_JS')}amazeui.legacy.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="{:C('SUPPLIER_ADMIN_JS')}amazeui.min.js"></script>
<!--<![endif]-->
<script src="{:C('SUPPLIER_ADMIN_JS')}app.js"></script>
<script type="text/javascript" src="{:C('SUPPLIER_ADMIN_JS')}jquery.validate.js"></script>
<script type="text/javascript" src="{:C('SUPPLIER_ADMIN_JS')}messages_zh.js"></script>
<script src="{:C('ADMIN_JS')}laydate/laydate.js"></script>

<script type="text/javascript">
 var start = {
    elem: '#start',
    format: 'YYYY/MM/DD hh:mm:ss',
    min: laydate.now(), //设定最小日期为当前日期
    max: '2099-06-16 23:59:59', //最大日期
    istime: true,
    istoday: false,
    choose: function(datas){
         end.min = datas; //开始日选好后，重置结束日的最小日期
         end.start = datas //将结束日的初始值设定为开始日
    }
};
var end = {
    elem: '#end',
    format: 'YYYY/MM/DD hh:mm:ss',
    min: laydate.now(),
    max: '2099-06-16 23:59:59',
    istime: true,
    istoday: false,
    choose: function(datas){
        start.max = datas; //结束日选好后，重置开始日的最大日期
    }
};
laydate(start);
laydate(end);
</script>

</body>
</html>




















